package com.test;

import com.test.service.Test1Service;
import com.test.service.Test2Service;
import com.test.service.Test3Service;
import com.test.service.TransactionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class Runner implements ApplicationRunner {
    @Resource
    TransactionService transactionService;

    @Resource
    Test1Service test1Service;

    @Resource
    Test2Service test2Service;

    @Resource
    Test3Service test3Service;
    @Override
    public void run(ApplicationArguments args) {
        transactionService.test1();
//        test1Service.test1();
    }
}
